{	Problem: http://codeforces.ru/problemset/problem/9/A
 	Verdict: Accepted
}
uses math;
procedure swap(var a,b:longint);
var t:longint;
begin
t:=a;
a:=b;
b:=t;
end;
function gcd(a,b:longint):longint;
begin
if a<b then swap(a,b);
while b>0 do begin
      a:=a mod b;
      swap(a,b);
end;
result:=a;
end;
var a,b:longint;
begin
read(a,b);
a:=7-max(a,b);
b:=gcd(a,6);
write(a div b,'/',6 div b);
read(a);
end.